﻿using PlcLib.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlcLib.Model
{
    public class ModbusResult : IPlcResult
    {
        public Command Command { get; set; }

        public object Content { get; set; }

        public bool Sucess { get; set; }

        public string Message { get; set; }

        public Exception Exception { get; set; }
        public byte[] ReceiveBuffer { get; set; }
    }

    /// <summary>
    /// modbus读写返回结果实体
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ModbusResult<T> : IPlcResult<T>
    {
        public Command Command { get; set; }

        public T Content { get; set; }

        public bool Sucess { get; set; }

        public string Message { get; set; }

        public Exception Exception { get; set; }
        public byte[] ReceiveBuffer { get; set; }
    }
}

